package com.example.chatrecommendation.bean.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 雷达图
 * @Date 2024-03-07 17:23:10
 * @author Jasmine-drs
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("radar")
@ApiModel(value="Radar对象", description="雷达图")
public class Radar implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer studentId;

    @ApiModelProperty("认知")
    private Double perceive;

    @ApiModelProperty("创新")
    private Double innovate;

    @ApiModelProperty("实践")
    private Double practice;

    @ApiModelProperty("表达")
    private Double expression;

    @ApiModelProperty("批判")
    private Double criticize;

    @NotNull(message="[创建时间]不能为空")
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @NotNull(message="[修改时间]不能为空")
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
